﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Wslzy.Auxiliary.Infrastructure.Datas.EF.Core;
using Wslzy.Auxiliary.Web.Domains.Models;
using Wslzy.Auxiliary.Web.Domains.Repositories;

namespace Wslzy.Auxiliary.Web.Datas.Repositories
{
    /// <summary>
    /// 用户仓储
    /// </summary>
    public class AccountRepository : RepositoryBase<Account,string>, IAccountRepository
    {
        /// <summary>
        /// 初始化用户仓储
        /// </summary>
        /// <param name="unitOfWork">工作单元</param>
        public AccountRepository(ISystemUnitOfWork unitOfWork) : base(unitOfWork)
        {
        }

        /// <summary>
        /// 清理
        /// </summary>
        public void Dispose()
        {
            UnitOfWork.Dispose();
        }

    }
}
